﻿<div class="control-group">
	<label for="textfield" class="control-label">{{L "_name"}}</label>
	<div class="controls user-name">
		<input type="text" value="{{user.fullName}}" class="input-xlarge" name="username"
            data-rule-required="true" data-rule-minlength="2">
	</div>
</div>
<div class="control-group">
	<label for="textfield" class="control-label">{{L "_login"}}</label>
	<div class="controls user-login">
		<input type="text" value="{{user.userLogin}}" class="input-xlarge"
            disabled="disabled">
	</div>
</div>
<div class="control-group">
	<label for="textfield" class="control-label">{{L "_password"}}</label>
	<div class="controls user-password">
		<input type="password" value="{{user.password}}" class="input-xlarge" name="password"
            id="user-password" data-rule-required="true" data-rule-minlength="6">
	</div>
</div>
<div class="control-group">
	<label for="textfield" class="control-label">{{L "_confirmPassword"}}</label>
	<div class="controls user-password-confirm">
		<input type="password" value="{{user.password}}" class="input-xlarge" name="password2"
            data-rule-required="true" data-rule-minlength="6" data-rule-equalTo="#user-password">
	</div>
</div>
<div class="control-group">
	<label for="textfield" class="control-label">{{L "_email"}}</label>
	<div class="controls user-email">
		<input type="email" value="{{user.email}}" class="input-xlarge"
            data-rule-required="true" data-rule-minlength="3">
	</div>
</div>
<div class="control-group">
	<label class="control-label">{{L "_state"}}</label>
	<div class="controls user-state">
        {{#ifCond user.active '==' true}}
            <input type="checkbox" class="icheck-me user-state" value="1" data-skin="square" data-color="blue" checked >
            <small>{{L "_clickToChangeState"}}</small></input>
        {{else}}    
            <input type="checkbox" class="icheck-me user-state" value="0" data-skin="square" data-color="blue">
            <small>{{L "_clickToChangeState"}}</small></input>
        {{/ifCond}}
	</div>
</div>
<div class="control-group">
	<label for="textfield" class="control-label">{{L "_groups"}}</label>
	<div class="controls user-group">
        <a href="#" class="editable editable-click" data-type="checklist" data-original-title={{L "_groups"}}>
            {{#each userData.groups}}
                <div data-value={{groupId}}>{{name}}</div>
            {{/each}}
        </a>
	</div>
</div>
<div class="control-group">
	<label for="textfield" class="control-label">{{L "_rol"}}</label>
    <div class="controls user-rol">
        <a href="#" class="editable editable-click" data-type="select" data-original-title={{L "_rol"}} >
            <div data-value={{userData.rol.rolId}}>{{userData.rol.name}}</div>
        </a>
    </div>
</div>